package com.lzy.shops.mapper;


import com.lzy.shops.bean.Order;
import com.lzy.shops.bean.Search;
import com.lzy.shops.vo.OrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    public Integer AddOrder(Order order);
    public List<OrderVo> findByUserOrder(@Param("userId") Integer userId);
    public Integer findByUserOrderNums(Integer userId);
    public Integer delOrder(@Param("userId") Integer userId,@Param("orderId") String orderId);
    public List<OrderVo> findAllOrder(@Param("search")Search search);
    public Integer findAllOrderNums();
}
